package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="t_cms_schedule")
public class TCmsSchedule implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2971240577861363474L;
	
	private Long id;
	private String code;
	private String name;
	private Date createTime;
	private Date updateTime;
	private Date onlineTime;
	private Date offlineTime;
	private Integer status;
	private Integer sequence;
	private Integer volumnCount;//集数
	private Long duration;//总时长
	private String playDate;//播放日期
	private String channelCode;
	private Long cpCode;
	private String startPlayTime;
	private String endPlayTime;
	
	@Column(name = "CP_CODE", length = 20, nullable = true)
	public Long getCpCode() {
		return cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="SCHEDULE_NAME",length=64,nullable=true)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_TIME",nullable=true)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ONLINE_TIME", nullable = true)
	public Date getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "OFFLINE_TIME", nullable = true)
	public Date getOfflineTime() {
		return offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Column(name = "STATUS", length = 2, nullable = true)
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "CODE", length = 64, nullable = true)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "SEQUENCE", length = 11, nullable = true)
	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Column(name = "VOLUMN_COUNT", length = 11, nullable = true)
	public Integer getVolumnCount() {
		return volumnCount;
	}

	public void setVolumnCount(Integer volumnCount) {
		this.volumnCount = volumnCount;
	}

	@Column(name = "DURATION", length = 20, nullable = true)
	public Long getDuration() {
		return duration;
	}

	public void setDuration(Long duration) {
		this.duration = duration;
	}

	@Column(name = "PLAY_DATE", length = 64, nullable = true)
	public String getPlayDate() {
		return playDate;
	}

	public void setPlayDate(String playDate) {
		this.playDate = playDate;
	}

	@Column(name = "CHANNEL_CODE", length = 64, nullable = true)
	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	@Column(name = "START_PLAY_TIME", length = 64, nullable = true)
	public String getStartPlayTime() {
		return startPlayTime;
	}

	public void setStartPlayTime(String startPlayTime) {
		this.startPlayTime = startPlayTime;
	}

	@Column(name = "END_PLAY_TIME", length = 64, nullable = true)
	public String getEndPlayTime() {
		return endPlayTime;
	}

	public void setEndPlayTime(String endPlayTime) {
		this.endPlayTime = endPlayTime;
	}
	
}
